import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const ARTICLE: AppRouteRecordRaw = {
  path: '/articlemanage',
  name: 'articlemanage',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.articleManage',
    icon: 'icon-tool',
    requiresAuth: true,
    order: 1100,
  },
  children: [
    {
      path: '/articlecate',
      name: 'ArticleCate',
      component: () => import('@/views/category/list.vue'),
      meta: {
        locale: 'menu.articleCate',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '/article',
      name: 'Article',
      component: () => import('@/views/article/list.vue'),
      meta: {
        locale: 'menu.article',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};

export default ARTICLE;
